Q:
How do you run a "foreground" task to place itself in the background?
A
You should use LaunchApplication call in the
Process Manager with the launchDontSwitch flag set in the
launchControlFlags field. You can find more information about
LaunchApplication in
Inside Macintosh: Processes, Chapter 2.